<body style="height: 45%;">
<div style="border: none;">
    <div th:if="${#lists.size(data)<=0}"
         style="margin:10px auto;text-align:center;
         color: #ff8080;">未查找到模具记录！</div>
    <div th:if="${#lists.size(data)>0}">
    <div th:each="mould:${data}" style="width: 100%;">
        <div style="float: left; width: 95%; height:30px; line-height: 30px;">
            <div style="float: left; margin-left: 5px;">
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   plain="true" outline="true" th:onclick="mouldDetail([[${mould.id}]])"
                   style="height: 23px;" iconCls="icon-help">详情</a>
            </div>
            <div style="float: left;margin-left: 5px;">
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   plain="true" outline="true" th:onclick="'modifyMould('+${mould.id}+')'"
                   style="height: 23px;" iconCls="icon-edit">修改</a>
            </div>
            <div style="float: left;margin-left: 5px;">
                <a href="javascript:void(0)" class="easyui-linkbutton"
                   plain="true" outline="true" th:onclick="'delMould('+${mould.id}+')'"
                   style="height: 23px;" iconCls="icon-remove">删除</a>
            </div>
        </div>
        <div style="float: left; width: 95%; margin-top: 6px;
            border-top: 1px solid #00bbee; border-bottom: 1px solid #00bbee;">
            <div style="float: left; width: 72%; ">
                <div style="float: left; width:70%; height:23px;
            line-height: 23px; margin-top:5px;">
                    <span th:text="'编号：'+${mould.mouldNo}"></span>
                </div>
                <div style="float: left; width:70%; height:23px; line-height: 23px;">
                    名称：<span th:text="${mould.mouldName}"></span>
                </div>
                <div style="float: left; width:70%; height:23px; line-height: 23px;">
                    颜色：<span th:text="${mould.mouldColor}"></span>
                    规格：<span th:text="${mould.spec}"></span>
                </div>
                <div style="float: left; width: 80%;">
                    创建者：<span th:text="${mould.entryNickname}"></span><br/>
                    创建时间：<span th:text="${#dates.format(mould.entryTime, 'yyyy-MM-dd HH:mm:ss')}"></span><br/>
                </div>
            </div>
            <div style="float: left; width: 25%; margin-top:10px;">
                <a class="fancybox" href="javascript:void(0)"
                   th:onclick="showMe([[${mould.picAddr}]])"
                   data-fancybox-group="gallery" th:title="${mould.mouldName}">
                    <img th:src="${mould.picAddr}" class="imgObj" width="100px" height="100px"/>
                </a>
            </div>
        </div>
    </div>
    </div>

</div>
<div id="dlg1" class="easyui-dialog" style="padding:3px 3px;width:80%;"
     data-options="inline:true,modal:true,closed:true,title:'模具图示'">
    <p style="text-align: center">
        <img src="#" id="myImg" width="250px" height="250px"/>
    </p>
    <div class="dialog-button">
        <a href="javascript:void(0)" class="easyui-linkbutton"
           style="width:100%;height:35px" onclick="$('#dlg1').dialog('close')">关闭</a>
    </div>
</div>
</body>
